package com.tin.config;

import com.tin.bean.TokenInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liming_oicq@163.com
 * @date 2018-10-14 15:15
 */
@Configuration
public class BeanConfig {

    //或者在TokenInfo类上使用@Component注解
    @Bean
    public TokenInfo tokenInfo(){
        return new TokenInfo();
    }
}
